<?php
session_name("interoprouter");
session_start();

$_redirect = $_GET["page"];
$_language = $_GET["language"];

if ($_language == "en")
{ // if english
	$_SESSION["lang"] = "en";
}
else if ($_language == "es")
{ // is spanish
	$_SESSION["lang"] = "es";
}
else
{ // else -> portuguese ($_language == "br")
	$_SESSION["lang"] = "br";
}

header ("Location: ./".$_redirect);

?>